import {http} from "@/utils";
import {ResType} from "@/api/shared.ts";

export type DetailProps = {
    id: string
    title: string
    channel_id: string
    content: string
    cover: {
        type: number
        images: string[]
    }
}

export function fetchGetDetail(id: string) {
    return http.request<ResType<DetailProps>>({
        url: `/mp/articles/${id}`,
    })
}
